/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import com.prabhu.jeazyprops.encryption.Base64;
import com.prabhu.jeazyprops.props.BaseProps;
import com.prabhu.jeazyprops.bean.KeyValue;

/**
 * Test Application for Displaying and Updating the Properties
 * @author Pinky
 */
public class PropsTestGui
        extends BaseProps
{

    public KeyValue Property1 = new KeyValue( "Property1", "Property1" );
    public KeyValue Property2 = new KeyValue( "Property2", "Property2" );
    public KeyValue Property3 = new KeyValue( "Property3", "Property3" );
    boolean property1;
    int property2;
    String property3;

    public boolean getProperty1()
    {
        return property1;
    }

    public void setProperty1( boolean property1 )
    {
        this.property1 = property1;
    }

    public int getProperty2()
    {
        return property2;
    }

    public void setProperty2( int property2 )
    {
        this.property2 = property2;
    }

    public String getProperty3()
    {
        return property3;
    }

    public void setProperty3( String property3 )
    {
        this.property3 = property3;
    }
    public static PropsTestGui lPropsTest;

    public static PropsTestGui getInstance()
    {
        if ( lPropsTest == null )
        {
            lPropsTest = new PropsTestGui();
            lPropsTest.setEncryption( new Base64() );
            lPropsTest.loadProperties( "test.properties" );
        }
        return lPropsTest;
    }

    /**
     * @param args the command line arguments
     */
    public static void main( String[] args )
    {
        PropsTestGui.getInstance().DisplaySettings();
    }
}
